package com.hbfu.zggdwlzzsx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("authors")
public class Authors {
    @TableId(type = IdType.AUTO) // 设置id为自增主键
    private Integer id;
    private String name;
    private String introduction;
    private String picture;
    @TableField(exist = false)
    private List<Works> works;
}